﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Utils.Physics2D.Objects;

namespace Utils.Physics2D.Collision
{
    public class NullCollider : CollisionHandler
    {
        static NullCollider instance;

        public static NullCollider DEFAULT
        {
            get
            {
                if (instance == null)
                {
                    instance = new NullCollider();
                }
                return instance;
            }
        }

        public NullCollider() : base(null) { }

        public override bool CheckCollision(PhysicsObject obj, DISPLACE displacement)
        {
            return false;
        }
    }
}
